<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thinhhung
 * Date: 6/1/12
 * Time: 3:24 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<?php
$mahdn = $this->Session->read('mahdn');
echo $this->Form->create('ChiTietNhap', array('action' => 'add'));
//echo $this->Form->input('id', array('type' => 'hidden', 'style' => 'width:200px'));
?>
<fieldset>
    <legend><label>Thêm hàng hóa nhập</label></legend>
    <dl>
        <dt><label>Mã hóa đơn nhập</label></dt>
        <dd><?php echo $this->Form->input('MAHDN', array('label' => false, 'readonly' => true, 'value' => $mahdn)); ?></dd>
    </dl>
    <dl>
        <dt><label>ID hàng hóa</label></dt>
        <dd><?php echo $this->Form->input('MASP', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Số lượng</label></dt>
        <dd><?php echo $this->Form->input('SLNHAP', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Đơn giá (VNĐ)</label></dt>
        <dd><?php echo $this->Form->input('DONGIANHAP', array('label' => false)); ?></dd>
    </dl>
</fieldset>

<div class="button">
<?php
echo $this->Form->submit('Lưu', array('div' => false));
echo $this->Html->Link('Hủy', array('controller' => 'hoa_don_nhaps', 'action' => 'index'), array('class' => 'cancel'));
echo $this->Form->end();
?>
</div>